import request from '@/utils/request'

const chatDialogApi = {
    /**
     * 对话记录列表
     */
    lists(params: {
        page_no?: number;
        page_size?: number;
        robot?: string;
        user?: string;
    }): Promise<any> {
        return request.get({
            url: '/agent/chat/dialog/history',
            params
        })
    },

    /**
     * 对话记录删除
     */
    delete(ids: number[]): Promise<any> {
        return request.post({
            url: '/agent/chat/dialog/delete',
            params: { ids }
        })
    }
}

export default chatDialogApi
